<?php

App::uses('StringUtil', 'Lib');


class GenericUtil {

    public static function generate_key($len = 8) { 
     // $salt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
     $salt = Configure::read('Security.salt');
     $cipherSeed = Configure::read('Security.cipherSeed');
	 return substr(str_shuffle($salt.$cipherSeed),0,$len);
    }
	
}

?>